﻿using System;
using System.Collections.Generic;

using System.Text;

namespace RoughJs.Helper
{
    public class Character
    {
        public static bool isJavaIdentifierStart(char ch)
        {
            if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || ch == '$' || ch == '_')
            {
                return true;
            }
            return false;
        }

        public static bool isJavaIdentifierPart(char ch)
        {
            if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || ch == '$' || ch == '_' || (ch>='0' && ch<='9'))
            {
                return true;
            }
            return false;
        }
        
    }
}
